package com.dkd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dkd.entity.VendingMachineEntity;
import com.dkd.entity.dto.ApplyPolicyDto;
import com.dkd.entity.dto.RepairCountDto;
import com.dkd.entity.dto.VmDto;
import com.dkd.entity.dto.VmQuery;
import com.dkd.entity.vo.VmPageVo;
import com.dkd.entity.vo.VmVo;

import java.util.List;

public interface VendingMachineService extends IService<VendingMachineEntity> {

    List<VmVo> addVm(VmDto vmDto);

    void updateVm(Long id, Long nodeId);

    boolean applyPolicy(ApplyPolicyDto applyPolicyDto);


    VmPageVo pageVm(VmQuery vmQuery);

    List<VendingMachineEntity> repairCount(RepairCountDto repairCountDto);

    boolean updateStatus(Long vmId, Integer status);

    VendingMachineEntity getDetails(String innerCode);
}
